package com.cqrt.entity;

import com.cqrt.constant.RTTableTypeConstant;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import lombok.Data;
import javax.persistence.*;
import java.math.BigInteger;

/**
 * 任务与作业关联表实体类
 * 对应表：TYPLM.RT_PRJ_TASK_JOB_LINK
 */
@Data
@Entity
@Table(name = "RT_PRJ_TASK_JOB_LINK")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_TASK_JOB_LINK
)
public class RTPrjTaskJobLinkDO extends CTyEntityBaseDO {

    /**
     * 主键OID
     */
    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    /**
     * 任务OID（非空）
     */
    @Column(name = "TASKOID", nullable = false)
    private BigInteger taskoid;

    /**
     * 作业OID（非空）
     */
    @Column(name = "JOBOID", nullable = false)
    private BigInteger joboid;

    /**
     * 对象类型
     */
    @TyOtype(
            name = RTTableTypeConstant.TYPE_TASK_JOB_LINK
    )
    @Column(name = "OTYPE", length = 50)
    private String otype=RTTableTypeConstant.TYPE_TASK_JOB_LINK;

    /**
     * 状态
     */
    @Column(name = "STATUS", length = 50)
    private String status;
}
